package ua.khpi.si.kit49.diploma.db.dao;

import ua.khpi.si.kit49.diploma.db.dto.UserRole;

/**
 * Interface for user role DAO
 * 
 * @author netstalk3r
 * 
 */
public interface UserRoleDAO {

	/**
	 * method for getting user role by id
	 * 
	 * @param id
	 *            for getting user role
	 * @return user role with current id
	 */
	UserRole getUserRoleById(Integer id);

	/**
	 * method for save or update user role
	 * 
	 * @param userRole
	 *            particular user role
	 */
	void saveOrUpdateUserRole(UserRole userRole);

}
